#!/bin/bash
export LC_ALL=C
time (
curl -s "${LG_SERVICE:-http://localhost:8000}/graph?user=bulk_test" | jq -r '.[].graph' | \
	xargs -r printf "${LG_SERVICE:-http://localhost:8000}/graph/%s\n" | \
	xargs -r -n50 -P${CORES:-`grep -c ^processor /proc/cpuinfo`} curl -H'x-please-pipeline: 1' -XDELETE
sync
)
